//
//  MXDemoViewController.swift
//  微博
//
//  Created by LoadingMx on 2017/3/18.
//  Copyright © 2017年 LoadingMx. All rights reserved.
//

import UIKit

class MXDemoViewController: MXBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        title = "第 \(navigationController?.childViewControllers.count ?? 0) 个"
        // Do any additional setup after loading the view.
    }
    @objc func showNext() {
        let vc = MXDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}

extension MXDemoViewController {
    
    override func setupTableView() {
        super.setupTableView()
        // 设置右侧的控制器

        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", fontSize: 16, target: self, action: #selector(showNext))
        
    }
}
